package com.lagou.demo.controller;

import com.lagou.edu.mvcframework.annotations.LagouController;
import com.lagou.edu.mvcframework.annotations.LagouRequestMapping;
import com.lagou.edu.mvcframework.annotations.MySecurity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author wuyuhan
 * @date 2020/12/3 22:34
 */
@MySecurity(value = {"wangwu"})
@LagouController
@LagouRequestMapping("/wangwu")
public class WangwuController {

    @LagouRequestMapping("/query")
    public String query(HttpServletRequest request, HttpServletResponse response, String name) {
        System.out.println("wangwu access");
        return name;
    }

}
